-- GENERATED SPELL FOR [Overmine Flayer] --


function spell0_23264(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23264', 15000, 1)
end

function spell1_23264(pUnit, Event) --@Rock Shell,n/a--
pUnit:FullCastSpellOnTarget(33810,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23264', 6295, 1)
end

function Sorts_23264(pUnit, Event)
local choix_sorts_23264 = math.random(0, 1)
if choix_sorts_23264 == 0 then
pUnit:RegisterEvent('spell0_23264', 1, 1)
end
if choix_sorts_23264 == 1 then
pUnit:RegisterEvent('spell1_23264', 1, 1)
end
end

function mob23264_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23264', math.random(1500, 3000), 1)
end

function mob23264_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23264_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23264_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23264, 1, 'mob23264_Action')
RegisterUnitEvent(23264, 2, 'mob23264_Leave')
RegisterUnitEvent(23264, 3, 'mob23264_Kill')
RegisterUnitEvent(23264, 4, 'mob23264_Die')
